package cn.zhang.order.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 tb_order_item
 * 
 * @author zfs
 * @date 2022-12-30
 */
public class TbOrderItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 商品id */
    @Excel(name = "商品id")
    private Long itemId;

    /** SPU_ID */
    @Excel(name = "SPU_ID")
    private Long goodsId;

    /** 订单id */
    @Excel(name = "订单id")
    private Long orderId;

    /** 商品标题 */
    @Excel(name = "商品标题")
    private String title;

    /** 商品单价 */
    @Excel(name = "商品单价")
    private BigDecimal price;

    /** 商品购买数量 */
    @Excel(name = "商品购买数量")
    private Integer num;

    /** 商品总金额 */
    @Excel(name = "商品总金额")
    private BigDecimal totalFee;

    /** 商品图片地址 */
    @Excel(name = "商品图片地址")
    private String picPath;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String sellerId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setItemId(Long itemId) 
    {
        this.itemId = itemId;
    }

    public Long getItemId() 
    {
        return itemId;
    }
    public void setGoodsId(Long goodsId) 
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() 
    {
        return goodsId;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setNum(Integer num) 
    {
        this.num = num;
    }

    public Integer getNum() 
    {
        return num;
    }
    public void setTotalFee(BigDecimal totalFee) 
    {
        this.totalFee = totalFee;
    }

    public BigDecimal getTotalFee() 
    {
        return totalFee;
    }
    public void setPicPath(String picPath) 
    {
        this.picPath = picPath;
    }

    public String getPicPath() 
    {
        return picPath;
    }
    public void setSellerId(String sellerId) 
    {
        this.sellerId = sellerId;
    }

    public String getSellerId() 
    {
        return sellerId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("itemId", getItemId())
            .append("goodsId", getGoodsId())
            .append("orderId", getOrderId())
            .append("title", getTitle())
            .append("price", getPrice())
            .append("num", getNum())
            .append("totalFee", getTotalFee())
            .append("picPath", getPicPath())
            .append("sellerId", getSellerId())
            .toString();
    }
}
